//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================

#include <ddk.h>
#include <bulverde.h>
#include <drvpub.h>
#include "display_def.h"



void BackLight_Open(DisplayContext *pCxt)
{
    GPSR0 |= (1<<16);
    GPDR0 |= (1<<16);

}

void BackLight_Close(DisplayContext *pCxt)
{
    GPCR0 |= (1<<16);
}

// Not implemented
int BackLight_SetBrightness(DisplayContext *pCxt, int b)
{
    // validate the arguments
    if ( b < 0 || b > 10)
    {
        return -1;
    }

	return 0;
}
